#ifndef __MCULEDDRV__
#define __MCULEDDRV__
#include "MCUConfig.h"

#define DELAY_TIME 0
#define ADDRESS_BASE 0xC0

//extern unsigned char LEDSegTable[];

extern short SegValue[];

extern void LEDUpdate(void);

extern void LEDClear(void);

extern void LEDSetAllOnOff(char Color);

extern void LEDSetLEDOnOrOff(unsigned char WhichLed, char Color);

extern bool LEDisOn(unsigned char WhichLED);
//设置数目管数�?
extern void LEDSetDitronDigital(int Val, char base, bool isFillZero);

extern void LEDSetSegmentValue(char pos, unsigned char val);
//设定第几位的�?
extern void LEDSetDitronValue(char index, unsigned short val);

#if 0
extern void LEDSetDitronValueByte(char index, unsigned char val);


extern void LEDInit(void);

extern void LEDSendAddrDataFix(unsigned char addr, unsigned char dat);
#endif

extern void LEDSendAddrDataInc(unsigned char addr, unsigned char* dat, unsigned char dat_len);

#endif
